home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 1 / MacMania 1.toast / Hypercard / HyperCard' More / C-D / DoubleLinkedL / Double Linked Lists / Double Linked Lists.txt < prev    next >
Encoding:
Text File  |  1989-03-01  |  737 b   |  3 lines  |  [TEXT/ttxt]

  1. Double Linked lists
  2.  
  3. This is a Script Report version of the buttons used to implement doubly linked lists in Hypercard, by Chuq Von Rospach, Editor, OtherRealms. This is somewhat primitive, as you'll see, but it works. There are two backgrounds. The first is the primary list, and the second is the list of linked cards attached to a single card from the first background. The first background has two hidden fields: ListEditions and NumEditions. The former is the pointer to the head of the linked list for that card, the latter the number of cards in the linked list. The second has two fields, "Next Title" and "Prev Title". Insertion and movement around the double linked list should be relatively simple to understand from the code.